package net.huashitong.ssydt.provider.pk.mapper;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.pk.entity.SsPkYmdxMatchRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsPkYmdxMatchRecordMapper extends LongMapper<SsPkYmdxMatchRecord> {

    /**
     * 获取非历史对象
     *
     * @return
     */
    SsPkYmdxMatchRecord getNotHistory();

    /**
     * 获取传入matchRecordId 小的最近的 id
     *
     * @param matchRecordId
     * @return
     */
    Long getLastMatchRecordId(Long matchRecordId);

    List<SsPkYmdxMatchRecord> findNonFinal(Long matchRecordId);
}